<?php if (is_array($models) && count($models) > 0) : ?>
    <div class="news partners">
    <?php foreach($models as $model) : ?>
        <div class="item clearfix">
            <a target="_blank" href="<?php echo $model->website; ?>"><img class="img" src="<?php echo image_path($model->photo); ?>" /></a>
            <h3 class="name"><?php echo $model->localePartner->name; ?></h3>
            <?php if(!empty($model->website)) : ?><div class="website"><b>Website : </b><a target="_blank" href="<?php echo $model->website; ?>"><?php echo $model->website; ?></a></div><?php endif; ?>
            <div class="content"><?php echo $model->localePartner->long_description; ?></div>
        </div>
    <?php endforeach; ?>
    </div>
    <div style="clear: both;"></div>
    <div class="pager">
        <?php
        $this->widget('CLinkPager',array(
            'pages' => $paging,
            'cssFile' => false,
            'header' => ''
        )); ?>
    </div>
<?php else : ?>
    <p><?php echo Yii::t('site/general','No partner'); ?></p>
<?php endif; ?>